import {
	Button, //按钮
	Tabbar, //标签栏
	TabbarItem, //改变所有Tabbar的设置文字属性
	TreeSelect, //分类选择
	Divider, //分割线
	Popup, //弹出层
	NavBar, //导航栏
	Checkbox, //复选框
	CheckboxGroup, //复选框组
	RadioGroup, //单选框组
	Radio, //单选框
	Card, //商品卡片
	Tag, //标签
	Sidebar, //侧边导航
	SidebarItem, //侧边列项目
	GoodsAction, //商品导航
	GoodsActionIcon, //徽标提示
	GoodsActionButton, //自定义按钮颜色
	Dialog, // 弹窗
	DatetimePicker, // 时间选择器
	Overlay, // 遮罩层
	Step, // 步骤
	Steps, // 步骤
	Circle, // 环形进度条
	ShareSheet, // 分享
	Toast, // 轻提示
	CountDown, // 倒计时
	Form, // 表单
	Field, // 表单项
	Uploader, // 上传
	Rate, // 评分
	Picker, // 选择器
	Cell, // 单元格
	CellGroup, // 单元格组、
	Loading, // 加载
	AddressEdit, // 地址编辑
	Search, // 搜索
	NumberKeyboard, // 数字键盘
	PasswordInput, // 密码输入框
	Tab, // 标签页
	Tabs, // 标签页s
	Empty, // 空组件
} from 'vant';

const components = [
	Button,
	Tabbar,
	TabbarItem,
	TreeSelect,
	Divider,
	Popup,
	NavBar,
	Checkbox,
	CheckboxGroup,
	RadioGroup,
	Radio,
	Card,
	Tag,
	Sidebar,
	SidebarItem,
	GoodsAction,
	GoodsActionIcon,
	GoodsActionButton,
	Dialog,
	DatetimePicker,
	Overlay,
	Step,
	Steps,
	Circle,
	ShareSheet,
	Toast,
	CountDown,
	Form,
	Field,
	Uploader,
	Rate,
	Picker,
	Cell,
	CellGroup,
	Loading,
	AddressEdit,
	Search,
	NumberKeyboard,
	PasswordInput,
	Tab,
	Tabs,
	Empty,
];

export default function install(Vue) {
	if (install.installed) return;
	components.forEach((component) => {
		Vue.component(component.name, component);
	});
}
